package pe.edu.cibertec.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "tab_company")
public class Compania implements Serializable {
    
    @EmbeddedId
    private CompaniaPK companiaPK;
    @Column(name="companyname")
    private String razonSocial;

    public Compania() {
    }

    public Compania(String codigoPais,String codigoCompania, String RazonSocial) {
        this.companiaPK = new CompaniaPK(codigoPais, codigoCompania);
        this.razonSocial = RazonSocial;
    }

    public CompaniaPK getCompaniaPK() {
        return companiaPK;
    }

    public void setCompaniaPK(CompaniaPK companiaPK) {
        this.companiaPK = companiaPK;
    }

    public String getRazonSocial() {
        return razonSocial;
    }

    public void setRazonSocial(String RazonSocial) {
        this.razonSocial = RazonSocial;
    }

    @Override
    public String toString() {
        return "Compania{" + "companiaPK=" + companiaPK + ", razonSocial=" + razonSocial + '}';
    }
}
